package cn.bdqn.activity03;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class ThreeActivity extends AppCompatActivity {
    private Button btnThree;
    private TextView tv_Three;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_three);btnThree=findViewById(R.id.btn_three);
        btnThree=findViewById(R.id.btn_three);
        tv_Three=findViewById(R.id.tv_three);
        tv_Three.setText(this.toString());
        btnThree.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(ThreeActivity.this,OneActivity.class);
                startActivity(intent);
            }
        });
      }
}
